package io.github.rascaler.dcenter.ws.handler;

import com.alibaba.fastjson.TypeReference;
import io.github.rascaler.dcenter.ws.message.SocketMessage;
import io.github.rascaler.dcenter.ws.message.SocketMessagePayload;
import org.yeauty.pojo.Session;

public interface SocketHandler <T extends SocketMessagePayload> {
    TypeReference<SocketMessage<T>> getTypeReference();

    void execute(Session session, SocketMessage<T> message);


}
